/*
 * MotorDriver.h
 *
 *  Created on: Dec 5, 2024
 *      Author: admire
 */

#ifndef MOTORDRIVER_H_
#define MOTORDRIVER_H_

#include "main.h"
#include "tim.h"
#include "gpio.h"
#include "stdbool.h"


void MotorInition(void);
void LeftWheelControl(uint8_t speed,uint8_t angle,bool flag);
void RightWheelControl(uint8_t speed,uint8_t angle,bool flag);
void CarRun(uint8_t speed,uint32_t distance);
void CarBack(uint8_t speed,uint32_t distance);
void CarLeft(uint8_t speed,uint32_t angle);
void CarRight(uint8_t speed,uint32_t angle);

#endif /* MOTORDRIVER_H_ */
